#!/bin/bash

PRO_NAME="$1"
TOOL_PATH="tools/$PRO_NAME"

if [ -e "$TOOL_PATH"/modules/ssv6x5x.ko ] || [ -e "$TOOL_PATH"/modules/8821cu.ko ] || [ -e "$TOOL_PATH"/modules/atbm6x3x_wifi_usb.ko ];then
    rm filesys/lib/modules/8188fu.ko
    rm filesys/lib/modules/atbm_wifi.ko
    rm filesys/usr/sbin/hostapd_nl82011
fi

if [ -d "$TOOL_PATH/audio_file" ];then
    rm filesys/usr/share/sounds/* -rf
fi

